package com.xzmzhp.dao.cos;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xzmzhp.pojo.cos.OrnamentsType;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

/**
 * @author: 王源(xm)
 * @create: 2022-04-23 16:10
 * @program: ams
 * @description: cos配件类型数据库交互接口
 */
@Repository
public interface OrnamentsTypeMapper extends BaseMapper<OrnamentsType> {

    /**
     * 根据cos服配件类型id修改cos服配件类型状态
     * @param ornamentsTypeId Ornaments服id
     * @param status Ornaments服状态
     * @return 是否成功
     */
    @Update("update ornaments_type set ornaments_type_status = #{status} where ornaments_type_id = #{ornamentsTypeId}")
    Integer exitStatus(@Param("ornamentsTypeId") Integer ornamentsTypeId, @Param("status")  String status);

}
